<?php include("conn.php");
  mysql_query('SET NAMES UTF8'); 

	  
class MyPrizeBean
{
	public $rets;
	public $userid;

	function __construct($rets,$userid)
	{
		$this->rets      = $rets;
		$this->userid      = $userid;
	}
}


        $rert31=mysql_query("select * from shop where  phone =".$_REQUEST[phone]);
		$rowf1=mysql_fetch_array($rert31);

		if($rowf1!=false){
				   $srat=mysql_query("update shop set password='".$_REQUEST[pass]."' where phone=".$_REQUEST[phone]);
				   $row=100;
		}else{
				$row=200;
		}			
	$prize = array();
	         
    $prize[] = new MyPrizeBean($row,$rowf1[shopid]);
		
echo json_encode($prize);
?>